package cn.jiyun.pojoday14;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: 小周
 * @Package: cn.jiyun.pojoday14
 * @Project: p11_parent
 * @name: Emp
 * @Date: 2023/8/11 11:33
 * @Filename: Emp
 */
@Data
@TableName(value = "emp")
public class Emp implements Serializable {
    @TableId(value = "eid",type = IdType.AUTO)
    private Integer eid;
    private String ename;
    private String photo;
    @TableField(value = "id_code")
    private Long idCode;
    private String numbers;
    private String phone;
    private String password;
    private String sex;
    private String signs;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date joindate;
    private String status;
    @TableField(value = "role_id")
    private Integer roleId;
    @TableField(value = "team_id")
    private Integer teamId;
}
